-- GENERATED SPELL FOR [Skittering Infector] --


function spell0_28736(pUnit, Event) --@Acid Splash,Self--
pUnit:FullCastSpellOnTarget(52446,pUnit)
pUnit:RegisterEvent('Sorts_28736', 10000, 1)
end

function spell1_28736(pUnit, Event) --@Acid Splash,Self--
pUnit:FullCastSpellOnTarget(59363,pUnit)
pUnit:RegisterEvent('Sorts_28736', 10000, 1)
end

function Sorts_28736(pUnit, Event)
local choix_sorts_28736 = math.random(0, 1)
if choix_sorts_28736 == 0 then
pUnit:RegisterEvent('spell0_28736', 1, 1)
end
if choix_sorts_28736 == 1 then
pUnit:RegisterEvent('spell1_28736', 1, 1)
end
end

function mob28736_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28736', math.random(1500, 3000), 1)
end

function mob28736_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28736_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28736_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28736, 1, 'mob28736_Action')
RegisterUnitEvent(28736, 2, 'mob28736_Leave')
RegisterUnitEvent(28736, 3, 'mob28736_Kill')
RegisterUnitEvent(28736, 4, 'mob28736_Die')
